<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="com.ejoysoft.wlanyz.business.Flowanalysis,com.ejoysoft.common.Constants,com.ejoysoft.util.ParamUtil,com.ejoysoft.wlanyz.system.SysUserUnit"%>
<%@ include file="../include/jsp/head.jsp"%>
<%
    Flowanalysis obj=new Flowanalysis(globa,true);
    String strUrl="flow_list.jsp";
    String strId = ParamUtil.getString(request, "strId","");
    if(action.equals(Constants.DELETE_STR)){
    	String[] aryStrId = ParamUtil.getStrArray(request, "strId");
    	    	for (int i = 0; i < aryStrId.length; i++) {
    	    	globa.dispatch(obj.delete(" where strId = "+aryStrId[i]+""), strUrl);
	    	}
    	} else {
	    if(action.equals(Constants.ADD_STR)) {
            globa.dispatch(obj.add(),strUrl);
		}
		else if(action.equals(Constants.UPDATE_STR)){
             if(strUrl.indexOf(".jsp")>=0)
                 globa.dispatch(obj.update(" where strId = "+strId+""),strUrl);
      }
	}
    //关闭数据库连接对象
    globa.closeCon();
%>